using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("FimTransfer"), DataContract]
    public class Transfer
    {

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "TransferId", ResourceType = typeof (Resources.TransfersResource))]
        public int TransferId { get; set; }

        [ForeignKey("MasBudgetSource")]
        [DataMember, Display(Name = "BgmSourceId", ResourceType = typeof (Resources.TransfersResource))]
        public int BgSourceId { get; set; }

        [ForeignKey("WorkArea")]
        [DataMember, Display(Name = "WorkAreaId", ResourceType = typeof (Resources.TransfersResource))]
        public int WorkAreaId { get; set; }

        [DataMember, Display(Name = "BgmYear", ResourceType = typeof (Resources.TransfersResource))]
        public int BgYear { get; set; }

        [DataMember, Display(Name = "TransferType", ResourceType = typeof (Resources.TransfersResource))]
        public string TransferType { get; set; }

        [DataMember, Display(Name = "TransferName", ResourceType = typeof (Resources.TransfersResource))]
        public string TransferName { get; set; }

        [DataMember, Display(Name = "RefNo", ResourceType = typeof (Resources.TransfersResource))]
        public string RefNo { get; set; }

        [DataMember, Display(Name = "TransferDate", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<System.DateTime> TransferDate { get; set; }

        [ForeignKey("FromBankAcc")]
        [DataMember, Display(Name = "FromBankAccId", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<int> FromBankAccId { get; set; }

        [ForeignKey("ToBankAcc")]
        [DataMember, Display(Name = "ToBankAccId", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<int> ToBankAccId { get; set; }

        [DataMember, Display(Name = "Amount", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<decimal> Amount { get; set; }

        [ForeignKey("Employee")]
        [DataMember, Display(Name = "EmpId", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<int> EmpId { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof (Resources.TransfersResource))]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof (Resources.TransfersResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual BGM.MasBudgetSource MasBudgetSource { get; set; }

        public virtual HRM.MasWorkArea WorkArea { get; set; }

        public virtual MasBankAccount FromBankAcc { get; set; }

        public virtual MasBankAccount ToBankAcc { get; set; }

        public virtual HRM.Employee Employee { get; set; }
    }
}